{"version":3,"file":"history.bundle.map.js","names":["this","BX","exports","main_core","landing_pageobject","landing_ui_highlight","landing_main","RESOLVED","PENDING","_BX$Landing$Utils","Landing","Utils","scrollTo","highlight","editNode","entry","PageObject","getInstance","blocks","then","block","get","Promise","reject","forceInit","node","nodes","getBySelector","selector","bind","useRangeRect","setValue","params","value","editText","editEmbed","editMap","editImage","editIcon","editLink","_BX$Landing$Utils$1","scrollTo$1","highlight$1","changeNodeName","onChangeTag","_BX$Landing$Utils$2","scrollTo$2","highlight$2","sortBlock","direction","_BX$Landing$Utils$3","scrollTo$3","highlight$3","addBlock","currentBlock","resolve","landing","Main","view","iframe","currentArea","contentDocument","body","querySelector","concat","lid","insertBefore","onAddBlock","code","_BX$Landing$Utils$4","scrollTo$4","highlight$4","removeBlock","deleteBlock","_BX$Landing$Utils$5","scrollTo$5","highlight$5","addCard","parentNode","elements","index","position","container","content","card","cards","_BX$Landing$Utils$6","scrollTo$6","highlight$6","removeCard","relativeSelector","addNode","_this","tags","top","onCustomEvent","removeNode","_BX$Landing$Utils$7","scrollTo$7","slice","editStyle","initStyles","querySelectorAll","forEach","element","className","style","removeAttribute","form","forms","find","currentForm","fields","field","reset","onFrameLoad","styleNode","styles","affect","length","setAffects","onStyleInputWithDebounce","data","getValue","_BX$Landing$Utils$8","scrollTo$8","highlight$7","updateContent","_BX$Landing$Utils$9","scrollTo$9","highlight$8","multiply","blockId","updateBlockStateData","singleAction","command","dynamicParams","dynamicState","settings","id","Object","keys","updateBlockState","Command","options","babelHelpers","classCallCheck","Type","isStringFilled","isFunction","registerBaseCommands","history","registerCommand","worker","Worker","asyncJsonParse","str","postMessage","addEventListener","event","worker$1","asyncJsonStringify","obj","removePageHistory","pageId","window","localStorage","historyData","isPlainObject","all","allString","loadStack","currentPageId","err","Backend","action","stack","Text","toNumber","stackCount","step","Math","min","e","fetchEntities","items","entities","images","item","push","redo","removeEntities","clear","commandState","onUpdate","rootWindow","getRootWindow","onInit","Entry","Highlight","_HighlightNode","inherits","possibleConstructorReturn","getPrototypeOf","call","layout","classList","add","animationDuration","createClass","key","show","rect","_this2","UI","prototype","setTimeout","hide","History","instance","defineProperty","type","TYPE_LANDING","commands","onStorage","landingId","Event","setTypeDesignerBlock","TYPE_DESIGNER_BLOCK","designerBlockId","getUndoAction","getRedoAction","getActionParams","undo","canUndo","runCommand","res","offset","canRedo","offsetValue","_this3","removePageHistory$$1","onNewBranch","entries","_this4"],"sources":["history.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,GACrB,SAAUC,EAAQC,EAAUC,EAAmBC,EAAqBC,GACpE,aAEA,IAAIC,EAAW,WACf,IAAIC,EAAU,UAEd,IAAIC,EAAoBR,GAAGS,QAAQC,MAC/BC,EAAWH,EAAkBG,SAC7BC,EAAYJ,EAAkBI,UAMlC,IAAIC,EAAW,SAASA,EAASC,GAC/B,OAAOd,GAAGS,QAAQM,WAAWC,cAAcC,SAASC,MAAK,SAAUD,GACjE,IAAIE,EAAQF,EAAOG,IAAIN,EAAMK,OAE7B,IAAKA,EAAO,CACV,OAAOE,QAAQC,QACjB,CAEAH,EAAMI,YACN,IAAIC,EAAOL,EAAMM,MAAMC,cAAcZ,EAAMa,UAE3C,IAAKH,EAAM,CACT,OAAOH,QAAQC,QACjB,CAEA,OAAOX,EAASa,EAAKA,MAAMN,KAAKN,EAAUgB,KAAK,KAAMJ,EAAKA,KAAMX,EAASgB,eAAeX,MAAK,WAC3F,OAAOM,EAAKM,SAAShB,EAAMiB,OAAOC,MAAO,MAAO,KAClD,GACF,GACF,EAEAnB,EAASgB,aAAe,KAExB,IAAII,EAAWpB,EAEf,IAAIqB,EAAYrB,EAEhB,IAAIsB,EAAUtB,EAEd,IAAIuB,EAAYvB,EAChBuB,EAAUP,aAAe,MAEzB,IAAIQ,EAAWD,EAEf,IAAIE,EAAWzB,EACfyB,EAAST,aAAe,MAExB,IAAIU,EAAsBvC,GAAGS,QAAQC,MACjC8B,EAAaD,EAAoB5B,SAC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